home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
MacGzip 1.0
/
source
/
Mac
/
Globals.h
< prev
next >
Wrap
Text File
|
1995-09-18
|
1KB
|
64 lines
/*
* Globals.h
*/
#ifndef __PREFS_H__
#include "Prefs.h"
#endif
#define kTicksCursor 20
/* The structure of an 'acur' resource */
typedef struct
{
short numberOfFrames; /* number of cursors to animate */
short whichFrame; /* current frame number */
CursHandle frame[1]; /* Pointer to the first cursor */
} acur, *acurPtr, **acurHandle;
typedef struct
{
Handle MenuBar;
acurHandle Cursor;
Boolean StartupFiles;
Boolean PrefsChanged;
Boolean Working;
Boolean InForeground;
Boolean quit;
Boolean Prompt;
short KeysMode;
short KeysOp;
short Op;
AliasHandle DFolder;
Boolean hasColorQD;
} AppStatus;
#define kAppKeyASCII 1
#define kAppKeyBin 2
#define kAppKeyMBin 3
/*
* Globals
*/
extern PrefsType gPrefs;
extern AppStatus gApp;
extern TSufMap gSufMap;
void MyBeep( short theSound );
acurHandle InitAnimatedCursor(short acurID);
void ReleaseAnimatedCursor(acurHandle *FrameListPtr);
void ZeroAnimatedCursor(acurHandle FrameList);
void UpdateAnimatedCursor(acurHandle FrameList, long int nowTicks);
Boolean EventLoop( void );
void InitMovableModal(long int theEnd, long *now );
void SetMMString( const char *fmt, ... );
void ReleaseMovableModal(void);
#define DoSystemTask() { if (EventLoop()) abort_gzip(); }